<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header">
	<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-inventoryRecord-edit" th:object="${partApplication}">
            <input id="partId" name="partId" th:field="*{partId}"  type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">项目名称：</label>
				<div class="col-sm-8">
					<input id="projectName" name="projectName" th:field="*{projectName}" class="form-control" type="text" readonly>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">配件名称：</label>
				<div class="col-sm-8">
					<input id="partName" name="partName" th:field="*{partName}" class="form-control" type="text" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">规格：</label>
				<div class="col-sm-8">
					<input id="sizeName" name="sizeName" th:field="*{sizeName}" class="form-control" type="text" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">规格值：</label>
				<div class="col-sm-8">
					<input id="priceName" name="priceName" th:field="*{priceName}" class="form-control" type="text" readonly>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">配件总量：</label>
				<div class="col-sm-8">
					<input id="partTotal" name="partTotal" th:field="*{partTotal}" class="form-control" type="text" readonly>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">领取人：</label>
				<div class="col-sm-8">
					<input id="receivePeople" name="receivePeople" th:field="*{receivePeople}" class="form-control" type="text" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">领取数量：</label>
				<div class="col-sm-8">
					<input id="receiveNum" name="receiveNum" th:field="*{receiveNum}" class="form-control" type="text" readonly>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">领取时间：</label>
				<div class="col-sm-8">
					<div class="input-group date">
						<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
						<input type="text" class="form-control" id="receiveDate" th:field="*{receiveDate}" readonly>

					</div>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">审核状态：</label>
				<div class="col-sm-8">
					<input id="auditStatus" name="auditStatus" th:field="*{auditStatus}" class="form-control" type="text" readonly>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
	<th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
		var prefix = ctx + "business/inventoryRecord";
		$("#form-inventoryRecord-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});

		$("#receiveDate").datetimepicker({
			format: "yyyy-mm-dd hh:ii:ss",
			autoclose: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-inventoryRecord-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
